home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gdm.postrm < prev    next >
Encoding:
Text File  |  2007-04-10  |  1.9 KB  |  58 lines

  1. #!/bin/sh
  2. if [ "$1" = "purge" ] ; then
  3.     update-rc.d gdm remove >/dev/null
  4.     rm -f /etc/default/gdm
  5.     if [ -d /etc/gdm ]; then
  6.         rmdir --ignore-fail-on-non-empty /etc/gdm/Init /etc/gdm/PreSession /etc/gdm/PostSession /etc/gdm/PostLogin /etc/gdm/Sessions /etc/gdm 2>/dev/null
  7.     fi
  8.     if [ -d /var/lib/gdm ]; then
  9.         rm -r /var/lib/gdm
  10.     fi
  11.     if [ -d /var/log/gdm ]; then
  12.         rm -r /var/log/gdm
  13.     fi
  14.     if getent passwd gdm >/dev/null; then
  15.         deluser gdm
  16.     fi
  17.     if getent group gdm >/dev/null; then
  18.         delgroup gdm
  19.     fi
  20. fi
  21. # Automatically added by dh_installmenu
  22. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  23. # End automatically added section
  24. # Automatically added by dh_installdebconf
  25. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  26.     . /usr/share/debconf/confmodule
  27.     db_purge
  28. fi
  29. # End automatically added section
  30. # Automatically added by dh_scrollkeeper
  31. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  32.     scrollkeeper-update -q
  33. fi
  34. # End automatically added section
  35. # Automatically added by dh_desktop
  36. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  37.     update-desktop-database -q
  38. fi
  39. # End automatically added section
  40. # Automatically added by dh_iconcache
  41. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  42. if [ "$1" = "remove" ] && \
  43.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  44.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  45.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  46.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  47.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  48.         # it's not important enough
  49.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  50.     else
  51.         # if the icon theme directory has no subdirs, we can remove the cache
  52.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  53.     fi
  54. fi
  55. # End automatically added section
  56.  
  57. exit 0
  58.